<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: -60px;
    width: 94%;
	left:3%;
    padding: 6px 0 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -44px;
    width: 2rem;
	height: 1rem;
	right:16px;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #7c1cc9;
}
.bottombg {bottom:-20px;width:100%;height:80px;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.fui-icon-group .fui-icon-col-sm.border {
	border: 1px solid {{main.syscolor || '#7c1cc9'}};
}
.fui-cellone-icon{color:{{main.syscolor || '#7c1cc9'}};padding-right:0.5rem;line-height:1.5}
.fui-icon-group .fui-icon-col-sm .icon{font-size:1.5rem;}
.member-page .headinfo .child.userinfo .face{
    border: 0 solid #fff;
}
.member-page .headinfo .child.userinfo .face img {
    height: 2.8rem;
    width: 2.8rem;
    border-radius: 2.8rem;
    display: block;
}
.fui-icon-group .fui-icon-col-sm .icon {
    height: auto;
    margin: auto;
    text-align: center;
    line-height: 1.4;
}
.fui-icon-group .fui-icon-col-sm .icon i {
    color: {{main.syscolor || '#7c1cc9'}};
    font-size: 1.4rem;
    margin-top: 3px;
}
</style>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class='fui-content member-page' style="top:0">
		<div class="headinfo" style="background:{{main.syscolor || '#7c1cc9'}};padding-bottom:0.5rem">		
				<div class="mod-member" style="margin-top:0;background:none;border: 0 solid #f2f2f2;">
					<div class="headinfo" style="background:none;padding:0;color:#f2f2f2">
									<div class="child userinfo" style="padding-bottom:5px;color:#f2f2f2;width:4rem">
													<div class="face" style="margin-right:0.6rem;" href="javascript:;" ng-click="access_json('core/member.cavatar/')">
															<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}" />
															<span class="vip" style="top: 2rem;background: {{main.syscolor || '#4491F1'}} none repeat scroll 0 0;"><i class="icon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem"></i></span>
													</div>
									</div>
									<div class="child userinfo" style="padding-bottom:0;color:#f2f2f2;flex: 1;text-align:left;">
										<div class="l bold" style="width:100%">{{pagedata.member.nickname}} </div>
										<div class="l">
											<div style="width:100%;font-size:12px" href="javascript:;" ng-click="access_json('core/member.set/')">MID:{{pagedata.member.id}} 手机: {{pagedata.member.mobile}} <span style="color:{{main.syscolor || '#4491F1'}}">设置</span></div>
											<div class="btn btn-sm btn-default-o" href="javascript:;" ng-click="pagedata.showrecharge=true;pagedata.post.type=3" style="margin-top:0;padding:0 0.5rem;background:none;width:auto">充值金币</div>
										</div>
									</div>
									
					</div>
				</div>
		</div>
		<div ng-if="pagedata.setting.no_myfee!=1" class="fui-cell-group fui-cell-click mod-group" style="margin-top:0.5rem">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.xunibi/')">
								<div class="fui-cell-text bold">我的钱包</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看我的钱包</div>
							</a>
							<div class="fui-icon-group col-4 selecter">
								<div class="fui-icon-col-sm external" style="margin:0">
									<div ng-click="access_json('core/member.red_log/')">
										<div class="text bold" style="color:{{main.syscolor || '#7c1cc9'}}">{{pagedata.member.ideal_money || '0.00'}}</div>
										<div class="subtitle" style="font-size:12px;color: #666;">我的红包 <span style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
									</div>
								</div>
								<div ng-repeat="(key,item) in pagedata.credit_types" class="fui-icon-col-sm external" style="margin:0">
									<div ng-click="access_json('core/member.xunibi//type='+key)">
										<div class="text bold" style="color:{{main.syscolor || '#7c1cc9'}}">{{item.fee || '0.00'}}</div>
										<div class="subtitle" style="font-size:12px;color: #666;">{{item.title}} <span style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
									</div>
								</div>
							</div>
		</div>
		<div class="fui-cell-group fui-cell-click mod-group" style="margin-top:0.5rem">
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.xunibi//type=3')">
					<div class="fui-cell-text bold">我的金币 （{{pagedata.credit_types[3].fee || '0.00'}}）</div>
					<div class="fui-cell-remark" style="font-size: 0.65rem;">查看金币日志</div>
				</a>
		</div>
		<div ng-if="pagedata.setting.no_myfee!=1" class="fui-cell-group fui-cell-click mod-group" style="margin-top:0.5rem">
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_shopbaojia/mylist/')">
					<div class="fui-cell-text bold">我的报价</div>
					<div class="fui-cell-remark" style="font-size: 0.65rem;">查看我的报价</div>
				</a>
		</div>
		<div style="padding:0.5rem">
		<div class="fui-cell-group" style="margin-top:0">
			<a href="javascript:;" ng-click="access_json('jy_shopbaojia/myshoucang/')" class="fui-cell">
				<div class="fui-cell-text bold">我的收藏</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">我关心的</div>
			</a>
			<a href="javascript:;" ng-click="access_json('jy_shopbaojia/team.index/')" class="fui-cell">
				<div class="fui-cell-text bold">团长中心</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">赚收益</div>
			</a>
		</div>
		<div ng-if="pagedata.show_sh ==1" class="fui-cell-group fui-cell-click ">
				<a class="fui-cell"  href="javascript:;" ng-click="access_json('jy_shopbaojia/shenhe/')">
					<div ng-if="pagedata.shenhenums>0" class="badge">{{pagedata.shenhenums}}</div>
					<div class="fui-cell-icon"><i class="icon jinyunicon icon-success"></i></div>
					<div class="fui-cell-text"><p>审核报价</p></div>
					<div class="fui-cell-remark"></div>
				</a>
		</div>
		</div>
		<div ng-include="sys_html('_copyright')"></div>
	</div>
</div>
<div ng-if="pagedata.showrecharge" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff;}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showrecharge=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行【{{pagedata.typetitle || '金币'}}】充值操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'>
					<input type='text' class='fui-input' placeholder="充值额度" ng-change="pagedata.upfee()" ng-model="pagedata.post.jifen">
					</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<div class="c" style="font-size:0.6rem;margin-top:-0.3rem;color:#fff">
						需支付：￥{{pagedata.post.fee || 0}} （充值比例：{{pagedata.jifen_rate}}比1）						
				</div>
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="pagedata.recharge()">确认充值</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.upfee=function(){
	scope.pagedata.post.fee=(scope.pagedata.post.jifen/scope.pagedata.jifen_rate).toFixed(2);
}
scope.pagedata.recharge=function(){
	scope.pagedata.post.type=3
	scope.post_json('jy_shopbaojia/home/recharge/',scope.pagedata.post,function(pay_id){
		var success_url='/home//type='+scope.pagedata.post.type;
		scope.tool.pay(pay_id,function(res){
				if(res.type=='success'){
					scope.message('支付成功！','success',success_url);
				}else{
					scope.message('支付失败！','success',success_url);
				}
		},'','',success_url,success_url);
	});
}
</script>